package modelo.dominio;

import java.util.ArrayList;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.OneToMany;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

@Entity
@Table(name ="Cliente")
@PrimaryKeyJoinColumn(name="cpf")
public class Cliente extends Pessoa {
	
	@OneToMany(mappedBy="cliente")
	private List<Locacao> listaLocacoes = new ArrayList<Locacao>();
	
	public Cliente(){}

	public Cliente(String nome) {
		super(nome);
	}

	public Cliente(long cpf) {
		super(cpf);
	}
	
	public Cliente(String nome, long cpf, String endereco, String telefone){
		super(nome, cpf, endereco, telefone);
	}

	@Override
	public String toString() {
		return super.toString();
	}
		
}
